From 2d02990327542b7a3bbc1f3c0ca277e78794ce16 Mon Sep 17 00:00:00 2001 From: "iap10@labyrinth.cl.cam.ac.uk" Date: Fri, 20 Aug 2004 07:43:55 +0000 Subject: [PATCH] bitkeeper revision 1.1159.45.7 (4125abbbALjz7ttvo9UYMDVzVkYmFA) misc cleanups --- tools/check/chk | 4 +++- xen/arch/x86/shadow.c | 11 ++++------- 2 files changed, 7 insertions(+), 8 deletions(-) diff --git a/tools/check/chk b/tools/check/chk index 632da544cb..16de110bc1 100755 --- a/tools/check/chk +++ b/tools/check/chk @@ -12,6 +12,8 @@ function usage { exit 1 } +export PATH=${PATH}:/sbin:/usr/sbin + case $1 in build) check="CHECK-BUILD" @@ -67,4 +69,4 @@ if [ "$failed" == "1" ] ; then else echo "OK" >> ${info} exit 0 -fi \ No newline at end of file +fi diff --git a/xen/arch/x86/shadow.c b/xen/arch/x86/shadow.c index 06445943ab..e1fac065d0 100644 --- a/xen/arch/x86/shadow.c +++ b/xen/arch/x86/shadow.c @@ -440,13 +440,10 @@ int shadow_mode_control(struct domain *d, dom0_shadow_control_t *sc) unsigned int cmd = sc->op; int rc = 0; - if (d == current) - printk("Attempt to control your _own_ shadow tables. I hope you know what you're doing!\n"); + domain_pause(d); + synchronise_pagetables(~0UL); - domain_pause(d); - synchronise_pagetables(d->processor); - - spin_lock(&d->mm.shadow_lock); + spin_lock(&d->mm.shadow_lock); if ( cmd == DOM0_SHADOW_CONTROL_OP_OFF ) { @@ -475,7 +472,7 @@ int shadow_mode_control(struct domain *d, dom0_shadow_control_t *sc) spin_unlock(&d->mm.shadow_lock); - domain_unpause(d); + domain_unpause(d); return rc; } -- 2.30.2